package com.twentyOne.ClothingLand.service.impl;

import java.util.List;

import com.twentyOne.ClothingLand.dao.IClassDAO;
import com.twentyOne.ClothingLand.dao.impl.ClassDAO;
import com.twentyOne.ClothingLand.service.IClassService;
import com.twentyOne.ClothingLand.vo.Class;

public class ClassService implements IClassService {

	private IClassDAO classDAO = new ClassDAO();
	
	@Override
	public void addClass(Class cla) {
		
		this.classDAO.addClass(cla);
		
	}

	@Override
	public void deleteClass(Class cla) {
		
		this.classDAO.deleteClass(cla);
		
	}

	@Override
	public void modifyClass(Class cla) {
		
		this.classDAO.modifyClass(cla);
		
	}

	@Override
	public List<Class> searchAllClass() {

		return this.classDAO.searchAllClass();
		
	}

}
